package com.aerospace.myrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: Aerospace
 * @Date: 2021/4/15 22:04
 * @Description: Dream begins
 */
@Configuration
public class CloudRole {
    @Bean
    public IRule iRule(){
        //定义为随机
        return new RandomRule();
//        return new RandomRule_ZY();
    }
}
